package com.sl.water.api;

import cn.hutool.json.JSONObject;
import com.sl.common.ResponseData;
import com.sl.water.entity.RehearsalScheme;
import org.springframework.http.ResponseEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public interface RehearsalPythonService {

    ResponseData executePythonScript(String scriptName, List<String> arguments);

    ResponseData callPythonApi(RehearsalScheme rehearsalScheme, String kind);

    ResponseEntity<byte[]> callImageApi(String filePath);

    /**
     * 生成降雨列表
     *
     * @param duration 总时长
     * @param rainfall 总降雨量
     * @return 降雨列表(时间间隔是分钟)
     */
    ResponseData<List<BigDecimal>> calRainfallList(Integer duration, BigDecimal rainfall);

    ResponseData<JSONObject> calImageListApi(LocalDateTime createdTime, long id, String kind);
}
